<?php
	echo validation_errors();
	echo form_open('student/edit_profile');
?>

<!--Pseudo navbar-->
Profile | <a href="/165-project/index.php/user/editProfile/student/password">Change Password</a><br />

<h1>Student Profile</h1>

<!--I'll use fieldsets for aesthetic purposes. Tangalin ko na lang pag nag style na tayo at OP siya :D-->
<?php
	echo form_label('Last Name', 'lastname'); echo "<br />";
	echo form_input('lastname', set_value('lastname', $reguser['lastname']));

	echo "<br />";
	echo form_label('First Name', 'firstname'); echo "<br />";
	echo form_input('firstname', set_value('firstname', $reguser['firstname']));

	echo "<br />";
	echo form_label('Middle Name', 'middlename'); echo "<br />";
	echo form_input('middlename', set_value('middlename', $reguser['middlename']));

	echo "<br />";
	echo form_label('Sex *: ', 'sex'); echo "&nbsp;&nbsp;";
	echo form_radio('sex', 'M', $reguser['sex'] == 'M' ? TRUE : FALSE) . 'Male'; echo "&nbsp;&nbsp;";
	echo form_radio('sex', 'F', $reguser['sex'] == 'F' ? TRUE : FALSE) . 'Female';

	echo "<br />";
	echo form_label('Address', 'address'); echo "<br />";
	echo form_input('address', set_value('address', $reguser['address']));

	echo "<br />";
	echo form_label('Occupation', 'occupation'); echo "<br />";
	echo form_input('occupation', set_value('occupation', $reguser['occupation']));
?>
<br><br>
<?php echo form_submit('save', "Save"); //Hindi ko rin ito masyadong gets ?>
